[PWGEM,PWGEM-36] PM: add config to store all daughters of all interes…#15975
Merged
mhemmer-cern merged 1 commit intoAliceO2Group:masterfrom Apr 27, 2026
Merged
[PWGEM,PWGEM-36] PM: add config to store all daughters of all interes…#15975mhemmer-cern merged 1 commit intoAliceO2Group:masterfrom
mhemmer-cern merged 1 commit intoAliceO2Group:masterfrom
Conversation
…ting particles - Add config `doStoreAllDaughters` to store all daughters from photon, pi0, eta, eta' and omega. - Add config `maxPt` and `maxY` which enables to change maximum rapodity and pT for BinnedGenPts table, was hardcoded previously! - Add function `selectMothersToStore` to reduce redundancy in the code - Add function `selectDaughtersToStore` to work with the new config `doStoreAllDaughters` - Use `std::unordered_map` instead of `std::map` where possible to reduce look up time. - Add new struct `Counter` to make the code part regarding particle and event counter more clear. Previously this was done by a C array instead.
|
O2 linter results: ❌ 9 errors, |
alibuild
approved these changes
Apr 27, 2026
Collaborator
alibuild
left a comment
There was a problem hiding this comment.
Auto-approving on behalf of @mhemmer-cern.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ting particles
doStoreAllDaughtersto store all daughters from photon, pi0, eta, eta' and omega.maxPtandmaxYwhich enables to change maximum rapidity and pT forBinnedGenPtstable, was hardcoded previously!selectMothersToStoreto reduce redundancy in the codeselectDaughtersToStoreto work with the new configdoStoreAllDaughtersstd::unordered_mapinstead ofstd::mapwhere possible to reduce look up time.Counterto make the code part regarding particle and event counter more clear. Previously this was done by a C array instead.